<?php
use Base\AdminController;

class ConfigGroupController extends AdminController
{
    protected string $table = 'config_groups';

    protected string $model = "configGroup";

    /**
     * 获取所有配置
     * @return void
     */
    public function getAllAction(): void
    {
        $data = ConfigGroupModel::query()
            ->where("is_hid",0)
            ->orderBy("sort","desc")
            ->orderBy('id','desc')
            ->get()->toArray();
        $this->apiSuccess($data,"获取成功",20000);

    }
}
